import yRequest from "../request"
/**
 * @description: get请求示例
 * @param {*}
 * @return {*}
 * @author: syx
 */
export function getDemo(data = {}, config = {}) {
  const options = Object.assign({ params: data }, config)
  return yRequest.get("commonGetDemo", "/getDemo", options)
}

/**
 * @description: post请求示例
 * @param {type}
 * @return {type}
 * @author: syx
 */
export function postDemo(data = {}, config = {}) {
  return yRequest.post("commonPostDemo", "/postDemo", data, config)
}
